package com.boesch.electroOffice.dataaccess.dao;

import java.util.List;

import com.boesch.electroOffice.dataaccess.common.IllegalDataAccessException;
import com.boesch.electroOffice.model.electroOffice.EldasArticle;
import com.boesch.electroOffice.model.messerli.SteigerArticle;

/**
 * This interface allocates all methods for MaterialElectroOfficeDaoImpl.
 * The methods are only called by the business layer.
 * If there is an error on executing the method, a illegalDataAccessException will be thrown.
 * 
 * @author Ralph Koster
 *
 */
public interface ArticleDao {

	public List<EldasArticle> readAllEldasArticles() throws IllegalDataAccessException;

	public List<SteigerArticle> readAllSteigerArticles() throws IllegalDataAccessException;

	public List<EldasArticle> readArticlesByAppointmentIdAndIdentifierId(int appointmentId, int identifierId) throws IllegalDataAccessException;

	public String saveEldasArticle(EldasArticle article) throws IllegalDataAccessException;

	public String saveSteigerArticle(SteigerArticle article) throws IllegalDataAccessException;
}
